package annotationtest.customannotations;

public class FruitRun {
	int a = 99;
	{
		a = 10;
		System.out.println("初始化块");
	}
	static {
		System.out.println("静态初始化块");
	}
	public static void main(String[] args) {
		FruitRun fruitRun = new FruitRun();
		System.out.println(fruitRun.a);
//		Apple apple = new Apple();
//		apple.displayName();
//		AppleService appleService = new AppleService();
//		appleService.showTaste();
//		appleService.showTaste(0);
//		appleService.showTaste(2);
//
//		FruitInfoUtil.getFruitInfo(apple.getClass());
//		FruitInfoUtil.getFruitInfo(Apple.class);
//		System.out.println(apple.getAppleProviderInfo());
	}

}
